package com.lmk.t01;

public class Test {
    public static void main(String[] args) {
        Thread t1= new myTest();
        t1.start();t1.setPriority(10);
        Thread t2=new Thread(()->
        {
            for (int i = 0; i <10 ; i++) {
                System.out.println("来自线程2:"+i);
            }
        });
        t2.start();t2.setPriority(1);
    }
    static  class  myTest extends Thread{
        @Override
        public void run() {
            for (int i = 0; i <10 ; i++) {
                System.out.println("来自线程1:"+i);
            }

        }
    }
}
